Produced by Araxis Merge on 2024-03-04 14:38:53 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | 2024-03-04 14:38:53 +0000 | ||
| 2 | /Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.8/app/design/frontend/Smartwave/porto/Smartwave_Porto/templates | category-menu.phtml | 2024-01-31 01:21:34 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 19 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <?php | |||||
| 2 | $_portohelper = $this->helper('Smartwave\Porto\Helper\Data'); | |||||
| 3 | if($_portohelper->getCurrentProduct() || $_portohelper->getCurrentCategory()){ | |||||
| 4 | echo $this->getCategorySidebarHtml(); | |||||
| 5 | } | |||||
| 6 | ?> | |||||
| 7 | <script type="text/javascript"> | |||||
| 8 | require(['jquery', 'jquery/ui'], function($){ | |||||
| 9 | var path = window.location.href; | |||||
| 10 | $(".category-sidebar li a").each(function() { | |||||
| 11 | if (this.href === path) { | |||||
| 12 | $(this).parent().addClass('active'); | |||||
| 13 | } | |||||
| 14 | if (this.href === path && $(this).parent().hasClass('parent')) { | |||||
| 15 | $(this).parents('.parent').addClass('active'); | |||||
| 16 | } | |||||
| 17 | }); | |||||
| 18 | }); | |||||
| 19 | </script> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.